import request from '@/utils/request'

// 查询标签分类列表
export function listTagcategories(query) {
  return request({
    url: '/system/tagcategories/list',
    method: 'get',
    params: query
  })
}

// 查询标签分类详细
export function getTagcategories(tagCategoryId) {
  return request({
    url: '/system/tagcategories/' + tagCategoryId,
    method: 'get'
  })
}

// 新增标签分类
export function addTagcategories(data) {
  return request({
    url: '/system/tagcategories',
    method: 'post',
    data: data
  })
}

// 修改标签分类
export function updateTagcategories(data) {
  return request({
    url: '/system/tagcategories',
    method: 'put',
    data: data
  })
}

// 删除标签分类
export function delTagcategories(tagCategoryId) {
  return request({
    url: '/system/tagcategories/' + tagCategoryId,
    method: 'delete'
  })
}
